package com.ruoyi.sys.vehile.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 记录充电对象 tb_record_charging
 *
 * @author ruoyi
 * @date 2022-05-24
 */
public class TbRecordCharging extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long rcId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String rcOrder;

    /** 订单日期（添加是会默认为当前日期） */
    @Excel(name = "订单日期", readConverterExp = "添=加是会默认为当前日期")
    private Date rcDate;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String rcNumber;

    /** 车牌类型 */
    @Excel(name = "车牌类型")
    private Long rcTbId;

    /** 充电开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充电开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rcStartTime;

    /** 充电结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充电结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rcEndTime;

    /** 充电量（kw） */
    @Excel(name = "充电量", readConverterExp = "k=w")
    private Long rcAmount;

    /** 充电费用（1kw=10） */
    @Excel(name = "充电费用", readConverterExp = "1=kw=10")
    private Long rcMoney;

    /** 实付金额（暂时不需要此列，如果需要打折使用该列） */
    @Excel(name = "实付金额", readConverterExp = "暂=时不需要此列，如果需要打折使用该列")
    private Long rcPayment;

    /** 充电桩编号（关联tb_charging_pile） */
    @Excel(name = "充电桩编号", readConverterExp = "关=联tb_charging_pile")
    private Long cpId;

    public void setRcId(Long rcId)
    {
        this.rcId = rcId;
    }

    public Long getRcId()
    {
        return rcId;
    }
    public void setRcOrder(String rcOrder)
    {
        this.rcOrder = rcOrder;
    }

    public String getRcOrder()
    {
        return rcOrder;
    }
    public void setRcDate(Date rcDate)
    {
        this.rcDate = rcDate;
    }

    public Date getRcDate()
    {
        return rcDate;
    }
    public void setRcNumber(String rcNumber)
    {
        this.rcNumber = rcNumber;
    }

    public String getRcNumber()
    {
        return rcNumber;
    }
    public void setRcTbId(Long rcTbId)
    {
        this.rcTbId = rcTbId;
    }

    public Long getRcTbId()
    {
        return rcTbId;
    }
    public void setRcStartTime(Date rcStartTime)
    {
        this.rcStartTime = rcStartTime;
    }

    public Date getRcStartTime()
    {
        return rcStartTime;
    }
    public void setRcEndTime(Date rcEndTime)
    {
        this.rcEndTime = rcEndTime;
    }

    public Date getRcEndTime()
    {
        return rcEndTime;
    }
    public void setRcAmount(Long rcAmount)
    {
        this.rcAmount = rcAmount;
    }

    public Long getRcAmount()
    {
        return rcAmount;
    }
    public void setRcMoney(Long rcMoney)
    {
        this.rcMoney = rcMoney;
    }

    public Long getRcMoney()
    {
        return rcMoney;
    }
    public void setRcPayment(Long rcPayment)
    {
        this.rcPayment = rcPayment;
    }

    public Long getRcPayment()
    {
        return rcPayment;
    }
    public void setCpId(Long cpId)
    {
        this.cpId = cpId;
    }

    public Long getCpId()
    {
        return cpId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rcId", getRcId())
            .append("rcOrder", getRcOrder())
            .append("rcDate", getRcDate())
            .append("rcNumber", getRcNumber())
            .append("rcTbId", getRcTbId())
            .append("rcStartTime", getRcStartTime())
            .append("rcEndTime", getRcEndTime())
            .append("rcAmount", getRcAmount())
            .append("rcMoney", getRcMoney())
            .append("rcPayment", getRcPayment())
            .append("cpId", getCpId())
            .toString();
    }
}
